import request from '@/utils/request'

export function getBusinessInfo(data) {
  return request({
    url: '/business/getBusinessInfo',
    method: 'post',
    data
  })
}
export function getBusinessInfoByAccounts(data) {
  return request({
    url: '/business/getBusinessInfoByAccounts?accounts=' + data,
    method: 'post',
  })
}

export function updateBusinessInfoByAccounts(data) {
  return request({
    url: '/business/updateBusinessInfoByAccounts',
    method: 'post',
    data
  })
}

export function addBusiness(data) {
  return request({
    url: '/business/addBusiness',
    method: 'post',
    data
  })
}

export function deleteBusiness(data) {
  return request({
    url: '/business/deleteBusiness?accounts=' + data,
    method: 'post',
  })
}